<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/include/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title><%=system_name%> - 报价单编辑</title>
	<%@include file="/WEB-INF/jsp/include/meta.jsp"%>
	
	<link href="css/public.css" rel="stylesheet" type="text/css">
	<link href="css/index.css" rel="stylesheet" type="text/css">
	<link href="<%=basePath%>css/common.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="<%=basePath%>js/DatePicker/WdatePicker.js" defer="defer"></script>
	<script src="<%=basePath%>js/common.js" type="text/javascript"></script>
	
	<script type="text/javascript">
	function beforeSubmit(){			
		var qid=$("qid").value;
		var qdate=$("qDate").value;
		if(""==qid){alert("报价单号不能为空!");return false;}
		if(""==qdate){alert("请填写日期");return false;}
			
		return true;
	}
		
	</script>
</head>

<body>
<form:form action="" method="post" name="myform" onsubmit="return beforeSubmit();">
<table class="tabView" style="margin-top:5px">
	<tr><th width="100">报价单号：</th><td><input type="text" name="qid" id="qid" size="50" maxlength="20" value="${command.qid}"/>
			<input type="hidden" name="qId0" id="q_id" value="${command.id}" />
			&nbsp;<span id="qid.error"><form:errors path="qid" cssStyle="color:red;"></form:errors></span><span id="qid.errorText"></span>
			</td>
			<th width="100">时间：</th><td>
				<form:input path="qDate" maxlength="20" cssClass="input" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
	</tr>
		
		<tr><td colspan="2" style="text-align:right;height:">报价单号：Q+年月日+"-"+业务代码（只取前两位）+顺序号<input type="submit" value=" 提 交 " class="btn1" /></td>
			<td colspan="2" style="text-align:left;height:"><input type="reset" value=" 重置 " class="btn1" value="reset"/></td>
		</tr>
	<tr>
		<td colspan="4" style="height:40px;text-align:center;vertical-align:top;line-height:15px"><span style="color:red">${message}</span></td>
	</tr>		
</table>
</form:form>
</body>
</html>
